<div class="goodslist">
	<div class="listtype">
		<a href="#default/goodslist?id=3" class="item">最新上架</a>
		<a href="#default/goodslist?id=2" class="item">销量最佳</a>
	</div>
	{{#if $Cache.tags_detail.length}} 
	<div class="tagbox">
		{{#each $Cache.tags_detail}}
		<a href="#default/goodslist?tag_id={{_id}}" title="{{type}}">
		{{tag_name}}({{content.length}})
		</a>
		{{/each}}
	</div>
	{{/if}}
	<div class="main">
		<div class="title">
			<div class="tile"></div>
			{{tagTitle||goodslisttitle}}
		</div>
		{{#if $Cache.pointer_tag}}
		{{#each  $Cache.pointer_tag.detail_content}}
		<goodsbox
			src="{{preview_img_url}}?imageView/1/w/200/h/200"
			href="#default/detail?id={{_id}}"
			name="{{goods_name}}"	
			price="{{price}}"
		></goodsbox>
		{{/each}}
		{{#else}}
		{{#each goods}}
		<goodsbox
			src="{{preview_img_url}}?imageView/1/w/300/h/300"
			href="#default/detail?id={{_id}}"
			name="{{goods_name}}"	
			price="{{price}}"
		></goodsbox>
		{{/each}}
		{{/if}}
	</div>
	<div class="getmore">
	 	{{#if loadingoods}}
        <p>正在加载</p>
        {{#else}} {{#if isresult}}
		<a event-click="{{'$Event.getMoreGoods'}}">查看更多商品</a>
		{{#else}}
        <p>没有更多东西了</p>
        {{/if}} {{/if}}
	</div>
</div>


<xmp type="tag" name="goodsbox">
	<div class="goodsbox">
		<a href="${href}">
			<img bind-src="${src}" />
		</a>  
		<div class="info">
			<div class="name">
				<a href="${href}">
					${name}
				</a>
			</div>
		</div>
		<div class="price">
			￥<span>${price}</span>
		</div>
		<button event-click="{{'$Top.$Event.goods_list.add_to_cart'}}">
			加入购物车
		</button>
	</div>
</xmp>

<link rel="stylesheet" type="text/css" href="/css/catering/mobile_goodslist.css" />